import React, { useState } from 'react';
import { Button, Modal, Checkbox, Form, Input } from 'antd';
import type { FormProps } from 'antd';

const PassModal: React.FC = () => {
    const [isModalOpen, setIsModalOpen] = useState(false);

    const showModal = () => {
        setIsModalOpen(true);
    };

    const handleOk = () => {
        setIsModalOpen(false);
    };

    const handleCancel = () => {
        setIsModalOpen(false);
    };

    return (
        <>
            <Button type="primary" onClick={showModal}>
                审批通过
            </Button>
            <Modal title="审批备注" open={isModalOpen} onOk={handleOk} onCancel={handleCancel}>
                <Form.Item
                    name="note"
                >

                    <Input.TextArea maxLength={1000} placeholder="请输入审批备注" />
                </Form.Item>
            </Modal>
        </>
    );
};

export default PassModal;